package cn.yyh.servicePet.client;

import cn.yyh.commons.utils.R;
import cn.yyh.servicePet.domain.PetAcquisitionOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: PetAcquisitionOrderClient
 * @Package: cn.yyh.servicePet.client
 * @date 2021/7/11
 */
@FeignClient(name = "service-order")
@Component
public interface PetAcquisitionOrderClient {

    @PostMapping("/serviceOrder/petAcquisitionOrder")
    R save(@RequestBody PetAcquisitionOrder order,
              @RequestHeader(required = true) String token);
}
